package com.tn.exam.entity;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * SysPosition entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "sys_position")
public class SysPosition extends BaseEntity implements java.io.Serializable {

	// Fields

	private Integer positionId;
	private String positionName;
	private String positionDuty;
	private String positionInfo;
	private Date positionCreateTime;
	private Date positionModifyTime;

	// Constructors

	/** default constructor */
	public SysPosition() {
	}

	/** minimal constructor */
	public SysPosition(String positionName) {
		this.positionName = positionName;
	}

	/** full constructor */
	public SysPosition(String positionName, String positionDuty,
			String positionInfo, Date positionCreateTime,
			Date positionModifyTime) {
		this.positionName = positionName;
		this.positionDuty = positionDuty;
		this.positionInfo = positionInfo;
		this.positionCreateTime = positionCreateTime;
		this.positionModifyTime = positionModifyTime;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "position_id", unique = true, nullable = false)
	public Integer getPositionId() {
		return this.positionId;
	}

	public void setPositionId(Integer positionId) {
		this.positionId = positionId;
	}

	@Column(name = "position_name", nullable = false, length = 50)
	public String getPositionName() {
		return this.positionName;
	}

	public void setPositionName(String positionName) {
		this.positionName = positionName;
	}

	@Column(name = "position_duty", length = 500)
	public String getPositionDuty() {
		return this.positionDuty;
	}

	public void setPositionDuty(String positionDuty) {
		this.positionDuty = positionDuty;
	}

	@Column(name = "position_info", length = 10000)
	public String getPositionInfo() {
		return this.positionInfo;
	}

	public void setPositionInfo(String positionInfo) {
		this.positionInfo = positionInfo;
	}

	@Column(name = "position_create_time", length = 19)
	public Date getPositionCreateTime() {
		return this.positionCreateTime;
	}

	public void setPositionCreateTime(Date positionCreateTime) {
		this.positionCreateTime = positionCreateTime;
	}

	@Column(name = "position_modify_time", length = 19)
	public Date getPositionModifyTime() {
		return this.positionModifyTime;
	}

	public void setPositionModifyTime(Date positionModifyTime) {
		this.positionModifyTime = positionModifyTime;
	}

}